import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# print(BASE_DIR)

def yaml_file(yaml_name):
    yaml_dir = os.path.join(BASE_DIR, 'datas')
    yaml_file = os.path.join(yaml_dir, yaml_name)
    return yaml_file

# print(yaml_file('test_login.yaml'))

REPORT_DIR = os.path.join(BASE_DIR, 'report')
REPORT_JSON = os.path.join(REPORT_DIR, 'allure_json')
REPORT_HTML = os.path.join(REPORT_DIR, 'allure_html')

CASE_FILES = os.path.join(BASE_DIR, 'testcases')
